//
//  YeeContHeader.h
//  YWBaseFrameWork
//
//  Created by 余伟 on 2017/1/11.
//  Copyright © 2017年 NeiQuan. All rights reserved.
//

#ifndef YeeContHeader_h
#define YeeContHeader_h

//主窗口的宽、高
#define kMainScreenWidth  MainScreenWidth()
#define kMainScreenHeight MainScreenHeight()

#define Localized(Str) NSLocalizedString(Str, Str)

static __inline__ CGFloat MainScreenWidth()
{
    return UIInterfaceOrientationIsPortrait([UIApplication sharedApplication].statusBarOrientation) ? [UIScreen mainScreen].bounds.size.width : [UIScreen mainScreen].bounds.size.height;
}

static __inline__ CGFloat MainScreenHeight()
{
    return UIInterfaceOrientationIsPortrait([UIApplication sharedApplication].statusBarOrientation) ? [UIScreen mainScreen].bounds.size.height : [UIScreen mainScreen].bounds.size.width;
}

#define IPhone4_5_6_6P(a,b,c,d) (CGSizeEqualToSize(CGSizeMake(320, 480), [[UIScreen mainScreen] bounds].size) ?(a) :(CGSizeEqualToSize(CGSizeMake(320, 568), [[UIScreen mainScreen] bounds].size) ? (b) : (CGSizeEqualToSize(CGSizeMake(375, 667), [[UIScreen mainScreen] bounds].size) ?(c) : (CGSizeEqualToSize(CGSizeMake(414, 736), [[UIScreen mainScreen] bounds].size) ?(d) : 0))))

#define kNavBarHeight           44
#define kNavStausHeight         20
#define kcontentViewHeight     kMainScreenHeight-kNavBarHeight-kNavStausHeight



#define  defaultPImage         [UIImage imageNamed:@"bg_juzhao_default"]
#define  UserHeaderImageHight  200.0f
#define  kMainBannerHight       kMainScreenWidth*0.5

#define  kMainShopHeaderHight   kMainScreenWidth*0.35



#endif /* YeeContHeader_h */
